package com.store.bookstore_backend.mapper;

import com.store.bookstore_backend.domain.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author 14111
 * @description 针对表【user(用户表)】的数据库操作Mapper
 * @createDate 2024-12-20 17:17:18
 * @Entity com.store.bookstore_backend.domain.User
 */

public interface UserMapper {
    public User getUserById(Long id);

    public void setUser(User user);

    public String getPassword(String username);

    public User getUserByUsername(String username);

    public void setDefaultAddress(@Param("addressId") Integer addressId, @Param("userId") Long userId);

    public String getPasswordById(@Param("userId") Long userId);

    public void updateUser(User user);
}




